home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3signal.h
- // Auto generated file, do not modify by hand
- // Copyrights 2002, Realsoft Graphics Oy
-
- var R3_SIGNAL_H = 1;
- include("oops/r3root.js")
-
-
- var R3CLID_SIGNAL = 2;
-
-
-
-
- // Description: Set signal's status to 'signaled'. The thread waiting for the signal
- // is awakened.
-
- R3SIGM_SET = 2000;
-
- function mR3SIGM_SET() {
- R3DoA(this.r3obj, R3SIGM_SET, 0);
- }
-
- // Description: Wait signal. Note: only the thread owning the signal
- // can call this.
- // p3: - R3INT, time out (in msecs).
-
- R3SIGM_WAIT = 2001;
-
- function mR3SIGM_WAIT(p3) {
- R3DoA(this.r3obj, R3SIGM_WAIT, p3);
- }
-
-
-
-
- // R3SIGA_Task: Object, a task for which the signal is to be created
- R3SIGA_Task = 2500;
- function SetR3SIGA_Task(value) {
- R3Set(this.r3obj, R3SIGA_Task, value);
- }
-
- function GetR3SIGA_Task() {
- return R3Get(this.r3obj, R3SIGA_Task, R3TID_INTEGER, TRUE); // R3OBJ*
- }
-
- // R3SIGA_SignalBit: Integer, a bit mask which identifies which signals have been set
- R3SIGA_SignalBit = 2501;
- function SetR3SIGA_SignalBit(value) {
- R3Set(this.r3obj, R3SIGA_SignalBit, value);
- }
-
- function GetR3SIGA_SignalBit() {
- return R3Get(this.r3obj, R3SIGA_SignalBit, R3TID_INTEGER, TRUE); // R3INT
- }
-
- // R3SIGA_Signalled: R3BOOT, true if signal has been set
- R3SIGA_Signalled = 2502;
- function SetR3SIGA_Signalled(value) {
- R3Set(this.r3obj, R3SIGA_Signalled, value);
- }
-
- function GetR3SIGA_Signalled() {
- return R3Get(this.r3obj, R3SIGA_Signalled, R3TID_INTEGER, TRUE); // R3BOOT
- }
-
- var SIGF_SET = 1;
-
-
- function r3Signal () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_SIGNAL, arguments);
- }
- // Methods
- this.SET=mR3SIGM_SET;
- this.WAIT=mR3SIGM_WAIT;
-
- // Attributes
- this.GetTask=GetR3SIGA_Task;
- this.SetTask=SetR3SIGA_Task;
- this.GetSignalBit=GetR3SIGA_SignalBit;
- this.SetSignalBit=SetR3SIGA_SignalBit;
- this.GetSignalled=GetR3SIGA_Signalled;
- this.SetSignalled=SetR3SIGA_Signalled;
- }
-
- r3Signal.prototype=new r3Root;
- // r3signal.h_H